﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.UserCommon
{
    /// <summary>
    /// 用户登录+邮箱登录+验证码
    /// </summary>
    [SugarTable("Users")]
    public class User
    {
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int UserId { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(100)",IsNullable =true)]
        public string Email { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string Code { get; set; }
        [SugarColumn(IsNullable = true)]
        public DateTime CreateTime { get; set; }
        [SugarColumn(IsNullable = true)]
        public DateTime EndTime { get; set; }
    }
}
